package com.dldata.devtools30.entity;

import jakarta.persistence.*;

/**
 * Created by 呵呵 on 2017-08-26.
 */
@Entity
@Table(name = "devt_form_fieldcheck" )
public class DevtFormFieldcheckEntity {

    private String id;
    private String templeid;
    private String name;
    private String code;
    private Integer active;
    private String checktype;
    private String content;
    private String errorinfo;
    private String bz;
    private String fieldcode;

    @Id
    @Column(name = "id", nullable = false, insertable = true, updatable = true, length = 64)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "templeid", nullable = true, insertable = true, updatable = true, length = 64)
    public String getTempleid() {
        return templeid;
    }

    public void setTempleid(String formId) {
        this.templeid = formId;
    }

    @Basic
    @Column(name = "name", nullable = true, insertable = true, updatable = true,length = 100)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "code", nullable = true, insertable = true, updatable = true, length = 64)
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Basic
    @Column(name = "active", nullable = true, insertable = true, updatable = true)
    public Integer getActive() {
        return active;
    }

    public void setActive(Integer active) {
        this.active = active;
    }

    @Basic
    @Column(name = "checktype", nullable = true, insertable = true, updatable = true, length = 64)
    public String getChecktype() {
        return checktype;
    }

    public void setChecktype(String checktype) {
        this.checktype = checktype;
    }

    @Basic
    @Column(name = "content", nullable = true, insertable = true, updatable = true, length = 2147483647)
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Basic
    @Column(name = "errorinfo", nullable = true, insertable = true, updatable = true, length = 64)
    public String getErrorinfo() {
        return errorinfo;
    }

    public void setErrorinfo(String errorinfo) {
        this.errorinfo = errorinfo;
    }

    @Basic
    @Column(name = "bz", nullable = true, insertable = true, updatable = true, length = 1024)
    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
    
        DevtFormFieldcheckEntity that = (DevtFormFieldcheckEntity) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (templeid != null ? !templeid.equals(that.templeid) : that.templeid != null) return false;
        if (name != null ? !name.equals(that.name) : that.name != null) return false;
        if (code != null ? !code.equals(that.code) : that.code != null) return false;
        if (active != null ? !active.equals(that.active) : that.active != null) return false;
        if (checktype != null ? !checktype.equals(that.checktype) : that.checktype != null) return false;
        if (content != null ? !content.equals(that.content) : that.content != null) return false;
        if (errorinfo != null ? !errorinfo.equals(that.errorinfo) : that.errorinfo != null) return false;
        if (bz != null ? !bz.equals(that.bz) : that.bz != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (templeid != null ? templeid.hashCode() : 0);
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (code != null ? code.hashCode() : 0);
        result = 31 * result + (active != null ? active.hashCode() : 0);
        result = 31 * result + (checktype != null ? checktype.hashCode() : 0);
        result = 31 * result + (content != null ? content.hashCode() : 0);
        result = 31 * result + (errorinfo != null ? errorinfo.hashCode() : 0);
        result = 31 * result + (bz != null ? bz.hashCode() : 0);
        return result;
    }

    @Basic
    @Column(name = "fieldcode", nullable = true, insertable = true, updatable = true, length = 2147483647)
    public String getFieldcode() {
        return fieldcode;
    }

    public void setFieldcode(String fieldcode) {
        this.fieldcode = fieldcode;
    }
}
